package com.demo.coretech.tests;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.swing.*;

/**
 * @Authors：gaoyang
 * @CreateTime：2021/11/26 22:47
 * @Description：todo
 */
@RestController
public class TestController {

    @GetMapping("/test")
    public String get(){
        //每10s运行一次
        Timer t = new Timer(10000, event -> {
            System.out.println("aaaaa");
        });
        t.start();
        return "sss";
    }
}
